package com.jgame.secondarymarket.interfaces.query.page.product;

import com.jgame.secondarymarket.interfaces.query.page.BasePageQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @title: PageProductQuery
 * @Author Wangsj
 * @Date: 2021/7/22
 */
@Data
@ApiModel(description = "商品分页查询参数")
public class PageProductQuery extends BasePageQuery {

    @ApiModelProperty(value = "商品一级分类")
    @NotNull(message = "商品一级分类称不能为空")
    private String categoryFist;

    @ApiModelProperty(value = "商品二级分类")
    private String categorySecond;

    @ApiModelProperty(value = "是否获取商品详细信息")
    private boolean openDetail;

    @ApiModelProperty(value = "商品名称")
    private String name;


}
